package com.hxzy.service;

import java.io.Serializable;

public class ServiceResult<T extends Serializable> {

    public final T data;
    public final int status;
    public final String message;
    
    public ServiceResult(int status){
        this.status=status;
        this.data=null;
        this.message="";
    }
    public ServiceResult(int status,T data){
        this.status=status;
        this.data=data;
        this.message="";
    }
    
    public ServiceResult(int status,T data,String message){
        this.status=status;
        this.data=data;
        this.message=message;
    }
}
